<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>1.其一</title>
  </head>
  <body>
    <script type="text/javascript" >

      let person = {name:'红浪漫',gender:'女'}

      Object.defineProperty(person,'age',{
        value:18,
        enumerable:true, //控制属性是否可以枚举
        writable:true, //控制属性是否可以被修改
        configurable:true //控制属性是否可以被删除
      })

      delete person.age

      console.log(person)
    </script>
  </body>
</html>